package com.group01.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group01.community.entity.ZyBuilding;
import com.group01.community.entity.vo.ZyBuildingVo;
import com.group01.community.mapper.ZyBuildingMapper;
import com.group01.community.service.ZyBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 楼栋  服务实现类
 * </p>
 *
 * @author guoyuan
 * @since 2025-05-01
 */
@Service
public class ZyBuildingServiceImpl extends ServiceImpl<ZyBuildingMapper, ZyBuilding> implements ZyBuildingService {

    @Autowired ZyBuildingMapper zyBuildingMapper;

    @Override
    public IPage<ZyBuildingVo> getBuildingPage(int curr, int size, Long communityId, String buildingName, String buildingCode) {
        return zyBuildingMapper.getBuildingInterceptor(new Page<>(curr, size), communityId, buildingName, buildingCode);
    }
}
